package com.aspose.cells;

import java.util.HashMap;

public class CopyOptions {
   boolean a;
   HashMap b;
   int c;
   HashMap d;
   boolean e;
   private boolean p;
   HashMap f;
   HashMap g;
   private boolean q;
   boolean h = false;
   HashMap i;
   int j;
   HashMap k;
   Workbook l;
   Workbook m;
   private boolean r = false;
   private boolean s = true;
   int n;
   int o;

   public CopyOptions() {
      this.a = false;
      if (!this.a) {
         this.b = new HashMap();
         this.c = 0;
      } else {
         this.c = 0;
      }

   }

   CopyOptions(boolean isTotal) {
      this.a = isTotal;
      if (!isTotal) {
         this.b = new HashMap();
         this.c = 0;
      } else {
         this.c = 0;
      }

   }

   CopyOptions(boolean isTotal, int copyType) {
      this.a = isTotal;
      this.c = copyType;
      if (!isTotal) {
         this.b = new HashMap();
      }

   }

   public boolean getCopyNames() {
      return this.q;
   }

   public void setCopyNames(boolean value) {
      this.q = value;
   }

   public boolean getCopyInvalidFormulasAsValues() {
      return this.p;
   }

   public void setCopyInvalidFormulasAsValues(boolean value) {
      this.p = value;
   }

   public boolean getColumnCharacterWidth() {
      return this.r;
   }

   public void setColumnCharacterWidth(boolean value) {
      this.r = value;
   }

   public boolean getReferToSheetWithSameName() {
      return this.s;
   }

   public void setReferToSheetWithSameName(boolean value) {
      this.s = value;
   }

   void a(Worksheet var1, Worksheet var2) {
      int[] var3 = var1.c().q().c(var1.c().u(), var1.getIndex());
      int var4 = var2.c().q().b(var2.c().u(), var2.getIndex());
      HashMap var5 = new HashMap();

      int var6;
      for(var6 = 0; var6 < var3.length; ++var6) {
         var5.put(var3[var6], var4);
      }

      var3 = var1.c().q().c(var1.c().u(), 65535);
      var4 = var2.c().q().b(var2.c().u(), 65535);

      for(var6 = 0; var6 < var3.length; ++var6) {
         var5.put(var3[var6], var4);
      }

      var3 = var1.c().q().c(var1.c().u(), 65534);
      if (var3 != null) {
         var4 = var2.c().q().a(var2.c().u(), 65534, 65534, true);

         for(var6 = 0; var6 < var3.length; ++var6) {
            var5.put(var3[var6], var4);
         }
      }

      HashMap var11 = new HashMap();
      this.i = var5;
      this.k = var11;
      if (var2.c() != var1.c() && this.getReferToSheetWithSameName()) {
         for(int var7 = 0; var7 < var1.c().getCount(); ++var7) {
            Worksheet var8 = var1.c().get(var7);
            if (var8 != var1) {
               Worksheet var9 = var2.c().get(var8.getName());
               if (var9 != null) {
                  var3 = var1.c().q().c(var1.c().u(), var8.getIndex());
                  var4 = var2.c().q().b(var2.c().u(), var9.getIndex());

                  for(int var10 = 0; var10 < var3.length; ++var10) {
                     var5.put(var3[var10], var4);
                  }
               }
            }
         }
      }

   }
}
